package oop4.chongxie;

import oop4.Dog;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest7 {
    public static void main(String[] args) {
        Dog d=new Dog("大黄",88,99,"公","中华田园犬");
        d.print();
        System.out.println(d);
        Dog d2=new Dog("大黄",55,77,"母","中华田园犬");
        boolean tong = d.equals(d2);//逻辑上是否相等
        System.out.println(tong);
        //>>>System.out.println(d==d2);
        //System.out.println(d.toString());//low逼
//        int i = d.hashCode();
//        System.out.println(i);
    }


}
